package com.laitaoo.views.login
{
	import com.laitaoo.event.LoginEvent;
	import com.laitaoo.model.User;
	import com.laitaoo.views.BaseMediator;
	
	import mx.controls.Alert;

	[Component(id="loginMediator")]
	public class LoginMediator extends BaseMediator
	{
		public function LoginMediator()
		{
		}
		/**
		 * @param user:User --- 用户对象
		 **/
		public function login(user:User):void{
			
			var loginEvent:LoginEvent = new LoginEvent(LoginEvent.LOGIN);
			loginEvent.user = user;
			eventBus.dispatchEvent(loginEvent);
			
		}
	}
}